﻿using Kratos.Framework.ContentManagement.Models.Order;
using Kratos.Framework.Repositories;

namespace Kratos.Modules.Order.Services.Impl
{
    public class OrderService : IOrderService
    {
        private readonly IRepository<Orders> _orderRepository;

        public OrderService(IRepository<Orders> orderRepository)
        {
            _orderRepository = orderRepository;
        }

        public Orders GetById(int orderId)
        {
            return _orderRepository.GetById(orderId);
        }

        public void Save(Orders model)
        {
            _orderRepository.SaveOrUpdate(model);
        }
    }
}
